<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255"%>
<jsp:useBean id="user" class="serverDB_classes.UserData" scope="session"/> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="newStyle.css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>Insert title here</title>
</head>
<body>

<br>
<br>
<br>
<ul>
<%	
String lib=(String) session.getAttribute("subLib"); %><%=lib %> <%
java.util.List<String> list = 
		serverDB_classes.DBManager.getDBManager().getRelativeItems(user.getUserName(),lib);
	if (list!=null){
	for (String s: list) {
		if (serverDB_classes.DBManager.getDBManager().getRelativeItems(user.getUserName(),s)!=null){
			session.setAttribute("subLib",s);
			%> <li><a href="subList.jsp"> <%=s%> </a></li>
		<% }
		else{
			session.setAttribute("fileName",s);
			%> <li><a href="sendingFile.jsp"><%=s%></a></li>
			<% 
		}
	}}
	else { %> <li><a href="subList.jsp">dropbox</a></li> <%} %>
</ul>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

</body>
</html>